package cn.cs.mapper;

import cn.cs.pojo.AgentSettlement;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AgentSettlementMapper {

    public AgentSettlement getAgentSettlementById(@Param(value = "id") String id) throws Exception;

    public Map<String, String> getShopSettlementDetailedById(@Param(value = "id") String id) throws Exception;

    public List<AgentSettlement> getAgentSettlementListByMap(Map<String, Object> param) throws Exception;

    public Integer getAgentSettlementCountByMap(Map<String, Object> param) throws Exception;

    public Integer insertAgentSettlement(AgentSettlement agentSettlement) throws Exception;

    public Integer updateAgentSettlement(AgentSettlement agentSettlement) throws Exception;

    public Integer deleteAgentSettlementById(@Param(value = "id") String id) throws Exception;

    public Integer updateShopSettlementDetailedState(@Param("id")String id,@Param("personId")String personId)throws Exception;

}
